﻿<%@ Page Language="C#" MasterPageFile="~/shrh.Master" AutoEventWireup="true" CodeBehind="shopCart.aspx.cs"
    Inherits="WebApp.Shopping.shopCart" Title="购物车" %>

<%@ Register Src="../UserControl/right.ascx" TagName="right" TagPrefix="uc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../css/css.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="shopping">
        <div class="shopping_1">
            <ul>
                <li class="spcolor">我的购物车 </li>
                <li>填写核对订单</li>
                <li>订单提交成功</li>
            </ul>
        </div>
        <div class="shopping_2">
            <div class="shopping2_login">
                <div class="sp2_1">
                    <img src="../image/chenggong.gif" /></div>
                <div class="sp2_2">
                    <p>
                        <asp:Literal ID="literalProductName" runat="server"></asp:Literal>
                        已经为您添加到购物车</p>
                    <p>
                        <a href="../Home.aspx">返回继续购物</a></p>
                </div>
            </div>
            <div class="shopping3">
                <div class="shop3_1">
                    购物车中的商品</div>
                <div class="shop3_2">
                    删除</div>
                <div class="shop3_3">
                    总计</div>
                <div class="shop3_4">
                    优惠</div>
                <div class="shop3_5">
                    数量</div>
                <div class="shop3_6">
                    单价</div>
            </div>
        </div>
        <div class="shopping_3">
            <ul>
                <asp:ListView ID="lvCart" runat="server" OnItemDataBound="lvCart_ItemDataBound">
                    <LayoutTemplate>
                        <asp:PlaceHolder ID="itemPlaceHolder" runat="server"></asp:PlaceHolder>
                    </LayoutTemplate>
                    <ItemTemplate>
                        <li>
                            <div class="s3_l1">
                                <span class="newcart_num" style="display: none">
                                    <%#Container.DataItemIndex + 1%></span><asp:HiddenField ID="HFPid" runat="server"
                                        Value='<%#Eval("ProductId")%>' />
                                <asp:HiddenField ID="hfMarketPrice" runat="server" Value='<%#Eval("ProductMarketPrice")%>' />
                                <a href='<%# "~/Product/productinfor_rh_" + Eval("UID")+".htm" %>' runat="server">
                                    <img id="Img1" src='<%# Cosmetic.WebGeneric.SmallImage(Eval("PictureUrl").ToString()) %>'
                                        runat="server" width="60" height="60" class="a1" />
                                </a>
                            </div>
                            <div class="s3_l2">
                                <a id="A3" href='<%# "~/Product/productinfor_rh_" + Eval("UID") + ".htm" %>'
                                    runat="server">
                                    <asp:Label ID="lbName" runat="server" Text='<%# Eval("ProductName")%>'></asp:Label>
                                </a>
                            </div>
                            <div class="s3_l3">
                                <asp:Label ID="UnitPrice" runat="server" Text='<%#Eval("ProductUnitPrice")%>'></asp:Label>元</div>
                            <div class="s3_l4">
                                <asp:TextBox ID="txtCount" runat="server" AutoPostBack="true" Width="40" Height="18"
                                    OnTextChanged="TextBox1_TextChanged" ToolTip='<%#Eval("ProductId") %>'></asp:TextBox>
                            </div>
                            <div class="s3_l5">
                                <asp:Label ID="labSaveMoney" runat="server"></asp:Label>元</div>
                            <div class="s3_l6">
                                <%-- <asp:Label ID="Label1" runat="server" Text='<%#Eval("ProductUnitPrice")%>'></asp:Label>元</div>--%>
                                <asp:Label ID="SmallCountNew" runat="server"></asp:Label>元</div>
                            <div class="s3_l7">
                                <asp:CheckBox ID="CheckBox1" runat="server" />
                            </div>
                        </li>
                    </ItemTemplate>
                </asp:ListView>
                 <asp:ListView ID="lvDiscountProduct" runat="server" 
                    onitemdatabound="lvDiscountProduct_ItemDataBound" >
                    <LayoutTemplate>
                        <asp:PlaceHolder ID="itemPlaceHolder" runat="server"></asp:PlaceHolder>
                    </LayoutTemplate>
                    <ItemTemplate>
                        <li>
                            <div class="s3_l1">
                                <span class="newcart_num" style="display: none">
                                    <%#Container.DataItemIndex + 1%></span><asp:HiddenField ID="HFPid_dis" runat="server"
                                        Value='<%#Eval("ProductId")%>' />
                                <asp:HiddenField ID="hfMarketPrice_dis" runat="server" Value='<%#Eval("ProductMarketPrice")%>' />
                                <a id="A1_Dis" href='<%# "~/Product/productinfor_rh_" + Eval("UID")+ ".htm" %>' runat="server">
                                    <img id="Img1" src='<%# Cosmetic.WebGeneric.SmallImage(Eval("PictureUrl").ToString()) %>'
                                        runat="server" width="60" height="60" class="a1" />
                                </a>
                            </div>
                            <div class="s3_l2">
                                <a id="A3_Dis" href='<%# "~/Product/productinfor_rh_" + Eval("UID") + ".htm" %>'
                                    runat="server">
                                    <asp:Label ID="lbName_Dis" runat="server" Text='<%# Eval("ProductName")%>'></asp:Label>
                                </a>
                            </div>
                            <div class="s3_l3">
                                <asp:Label ID="UnitPrice_Dis" runat="server" Text='<%#Eval("ProductUnitPrice")%>'></asp:Label>元</div>
                            <div class="s3_l4">
                              
                                <asp:Label ID="txtCount_Dis" runat="server" Text="1"></asp:Label>
                            </div>
                            <div class="s3_l5">
                                <asp:Label ID="labSaveMoney_Dis" runat="server"></asp:Label>元</div>
                            <div class="s3_l6">
                                <asp:Label ID="SmallCountNew_Dis" runat="server"></asp:Label>元</div>
                            <div class="s3_l7">
                                <asp:CheckBox ID="CheckBox1_Dis" runat="server" />
                            </div>
                        </li>
                    </ItemTemplate>
                </asp:ListView>
            </ul>
            <asp:HiddenField ID="HFAllPrice" runat="server" />
            <asp:HiddenField ID="HFDiscountAmount" runat="server" />
            <asp:HiddenField ID="HFCashCardAmount" runat="server" />
            <asp:HiddenField ID="HFDiscountCardId" runat="server" />
            <asp:HiddenField ID="HFCashCardId" runat="server" />
            <p class="gtitle" style="text-align: right; color: #FFF; margin-right: 40px;">
                <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LinkButton1_Click" Font-Bold="True"
                    Font-Strikeout="False" ForeColor="black">删除</asp:LinkButton>
                <%--<cc1:ConfirmButtonExtender ID="LinkButton1_ConfirmButtonExtender" runat="server"
                    TargetControlID="LinkButton1" ConfirmText="你确认要删除所选商品吗?">
                </cc1:ConfirmButtonExtender>--%>
            </p>
            <asp:Panel ID="plseperate" runat="server" Visible="false">
            </asp:Panel>
            <p class="s3_p1">
                <%--<a href="">
                    <img src="../image/deleshop.gif" /></a>--%><span class="s3_s1">共<asp:Literal ID="literalProductCount"
                        runat="server"></asp:Literal>件商品</span></p>
            <p class="s3_p2">
                商品总金额= ￥<asp:Label ID="lbAfterAllPrice" runat="server" Text=""></asp:Label>元</p>
            <p class="s3_p3">
                <asp:LinkButton BackColor="#2C69BA" ForeColor="White" BorderColor="#2C69BA" BorderStyle="Solid"
                    BorderWidth="1px" ID="imgBtnGoPay" runat="server" OnClick="imgBtnGoPay_Click">去结算</asp:LinkButton>
                <a href="../Home.aspx" target="_self">继续购物</a>
            </p>
        </div>
    </div>
</asp:Content>
